home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / filetype.z / filetype
Text File  |  1998-10-30  |  5KB  |  133 lines

  1.  
  2.  
  3.  
  4. FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111))))                     PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                     FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      filetype, fileopen, filealtopen, wstype - determine filetype of specified
  10.      file or files
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      ffffiiiilllleeeettttyyyyppppeeee [----vvvv]  [ ----dddd _f_i_l_e_t_y_p_e_D_a_t_a_B_a_s_e_P_a_t_h ] [----oooo | ----aaaa ] file...
  14.  
  15. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.      _f_i_l_e_t_y_p_e is a utility used to determine the _I_R_I_X _I_n_t_e_r_a_c_t_i_v_e _D_e_s_k_t_o_p
  17.      (_I_I_D(_1_G)) file type of a file or set of files.  _f_i_l_e_t_y_p_e uses the IRIX
  18.      Interactive Desktop file typing database to look up file typing rules and
  19.      apply them to the files listed, then prints the file type for each file
  20.      whose type was requested.  The conversion rules are located in compiled
  21.      ._o_t_r files in /_u_s_r/_l_i_b/_f_i_l_e_t_y_p_e. The older _f_t_r(_1) database format, ._c_t_r
  22.      files are not supported anymore.  The source ._f_t_r files can be found in
  23.      the _l_o_c_a_l, _i_n_s_t_a_l_l, _s_y_s_t_e_m, and _d_e_f_a_u_l_t subdirectories under
  24.      /_u_s_r/_l_i_b/_f_i_l_e_t_y_p_e.
  25.  
  26.      If no file type can be determined for a particular file, the string
  27.      "Unknown" is returned.  If a file type can be determined, filetype will
  28.      return a string representing the name of the file and its IRIX
  29.      Interactive Desktop type name.
  30.  
  31. UUUUSSSSAAAAGGGGEEEE
  32.      The ----vvvv option should be used when detailed file typing information is
  33.      desired.  This option prints a copy of the full file-type rule when a
  34.      file is successfully typed.
  35.  
  36.      ----dddd _f_i_l_e_t_y_p_e_D_a_t_a_B_a_s_e_P_a_t_h is an alternate path to the compiled file-typing
  37.      rules.  The default path is /_u_s_r/_l_i_b/_f_i_l_e_t_y_p_e/_d_e_s_k_t_o_p._o_t_r.
  38.  
  39.      The ----oooo and ----aaaa options execute the FTR "Open" and "Alt-Open" rules for the
  40.      selected files.  The first filename on the command line is put into the
  41.      $LEADER variable, the rest into $REST.  The rest of the IRIX Interactive
  42.      Desktop environment variables are set appropriately accordingly.  (See
  43.      mmmmaaaannnn ffffttttrrrr for more information on those variables.)  Invoking _f_i_l_e_o_p_e_n is
  44.      equivalent to passing the ----oooo switch to _f_i_l_e_t_y_p_e. Invoking _f_i_l_e_a_l_t_o_p_e_n is
  45.      equivalent to passing the ----aaaa switch to _f_i_l_e_t_y_p_e.
  46.  
  47.      The ----vvvv option should be used when detailed file typing information is
  48.      desired.  This option prints a copy of the full file-type rule when a
  49.      file is successfully typed.
  50.  
  51.      _f_i_l_e(_s) is one or more file names, separated by spaces.
  52.  
  53.      A typical call from the command line and its resulting output might look
  54.      like the following:
  55.  
  56.           $ filetype /etc/passwd /unix /dev/kmem
  57.  
  58.              /etc/passwd AsciiTextFile
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111))))                     PPPPrrrriiiinnnnttttiiiinnnngggg TTTToooooooollllssss                     FFFFIIIILLLLEEEETTTTYYYYPPPPEEEE((((1111))))
  71.  
  72.  
  73.  
  74.          /unix GenericExecutable
  75.  
  76.           /dev/kmem CharSpecial
  77.  
  78.  
  79. TTTTYYYYPPPPEEEE OOOORRRRDDDDEEEERRRRIIIINNNNGGGG
  80.      The ordering of files on _f_i_l_e_t_y_p_e'_s command line determines the ordering
  81.      of files and types reported.
  82.  
  83. FFFFIIIILLLLEEEESSSS
  84.      /usr/lib/filetype/local/*.ftr
  85.      /usr/lib/filetype/install/*.ftr
  86.      /usr/lib/filetype/system/*.ftr
  87.      /usr/lib/filetype/default/*.ftr
  88.      /usr/lib/filetype/desktop.otr
  89.  
  90. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  91.      _I_R_I_S _I_m_p_r_e_s_s_a_r_i_o _P_r_o_g_r_a_m_m_i_n_g _G_u_i_d_e , _I_R_I_X _I_n_t_e_r_a_c_t_i_v_e _D_e_s_k_t_o_p _I_n_t_e_g_r_a_t_i_o_n
  92.      _G_u_i_d_e , _r_o_u_t_e_p_r_i_n_t(_1), _f_t_r(_1).
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.